package com.rpc.framework;

import java.util.List;
import java.util.Random;

/**
 * @Author:cxy
 * @Date:2021/1/24 20:01
 */
public class LoadBalance {

    public static URL random(List<URL> urls){
        final Random random = new Random();
        return urls.get(random.nextInt(urls.size()));
    }

}
